
package com.emser.unc.server;

import javax.servlet.http.HttpSession;

import com.emser.unc.client.service.LoginService;
import com.emser.unc.serializable.UserAccountDTO;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings("serial")
public class LoginServiceImpl extends RemoteServiceServlet implements LoginService {
  @Override
  public UserAccountDTO getLoggedInUserDTO() {
    HttpSession session = getThreadLocalRequest().getSession();
    return LoginHelper.getLoggedInUser(session);
    
  }
} 